package cn.jiyun.service;

import com.baomidou.mybatisplus.extension.service.IService;
import cn.jiyun.model.pojo.Address;
import cn.jiyun.model.query.AddressQuery;
import com.baomidou.mybatisplus.core.metadata.IPage;

import java.util.List;

/**
 * 针对表【-Address】的业务操作Service
 *
 * @author
 * @since 2024-12-18
 */
public interface IAddressService extends IService<Address> {
    /**
     * 分页：查询当前页数据
     * @param query 查询参数
     * @return
     */
    public IPage<Address> getPageList(AddressQuery query);

    List<Address> showlist(Integer id);

    Address getDefaultAddress(Integer id);

    void updateDefaultAddress(Integer id, Long addressId);

    void delete(Long id);
}
